Optimal. Leaf size=35 \[ \frac{3 \tan ^{-1}(\sinh (x))}{8 a}+\frac{\tanh (x) \text{sech}^3(x)}{4 a}+\frac{3 \tanh (x) \text{sech}(x)}{8 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0598158, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3175, 3768, 3770} \[ \frac{3 \tan ^{-1}(\sinh (x))}{8 a}+\frac{\tanh (x) \text{sech}^3(x)}{4 a}+\frac{3 \tanh (x) \text{sech}(x)}{8 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 3768
Rule 3770
Rubi steps
\begin{align*} \int \frac{\text{sech}^3(x)}{a+a \sinh ^2(x)} \, dx &=\frac{\int \text{sech}^5(x) \, dx}{a}\\ &=\frac{\text{sech}^3(x) \tanh (x)}{4 a}+\frac{3 \int \text{sech}^3(x) \, dx}{4 a}\\ &=\frac{3 \text{sech}(x) \tanh (x)}{8 a}+\frac{\text{sech}^3(x) \tanh (x)}{4 a}+\frac{3 \int \text{sech}(x) \, dx}{8 a}\\ &=\frac{3 \tan ^{-1}(\sinh (x))}{8 a}+\frac{3 \text{sech}(x) \tanh (x)}{8 a}+\frac{\text{sech}^3(x) \tanh (x)}{4 a}\\ \end{align*}
Mathematica [A] time = 0.0044584, size = 34, normalized size = 0.97 \[ \frac{\frac{3}{4} \tan ^{-1}\left (\tanh \left (\frac{x}{2}\right )\right )+\frac{1}{4} \tanh (x) \text{sech}^3(x)+\frac{3}{8} \tanh (x) \text{sech}(x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.026, size = 94, normalized size = 2.7 \begin{align*} -{\frac{5}{4\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{7} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-4}}+{\frac{3}{4\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{5} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-4}}-{\frac{3}{4\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{3} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-4}}+{\frac{5}{4\,a}\tanh \left ({\frac{x}{2}} \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-4}}+{\frac{3}{4\,a}\arctan \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.51705, size = 93, normalized size = 2.66 \begin{align*} \frac{3 \, e^{\left (-x\right )} + 11 \, e^{\left (-3 \, x\right )} - 11 \, e^{\left (-5 \, x\right )} - 3 \, e^{\left (-7 \, x\right )}}{4 \,{\left (4 \, a e^{\left (-2 \, x\right )} + 6 \, a e^{\left (-4 \, x\right )} + 4 \, a e^{\left (-6 \, x\right )} + a e^{\left (-8 \, x\right )} + a\right )}} - \frac{3 \, \arctan \left (e^{\left (-x\right )}\right )}{4 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.49142, size = 1607, normalized size = 45.91 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\operatorname{sech}^{3}{\left (x \right )}}{\sinh ^{2}{\left (x \right )} + 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.15806, size = 90, normalized size = 2.57 \begin{align*} \frac{3 \,{\left (\pi + 2 \, \arctan \left (\frac{1}{2} \,{\left (e^{\left (2 \, x\right )} - 1\right )} e^{\left (-x\right )}\right )\right )}}{16 \, a} - \frac{3 \,{\left (e^{\left (-x\right )} - e^{x}\right )}^{3} + 20 \, e^{\left (-x\right )} - 20 \, e^{x}}{4 \,{\left ({\left (e^{\left (-x\right )} - e^{x}\right )}^{2} + 4\right )}^{2} a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]